package cn.edu.nju.ws.sview.wyge.relations.adataset.overview.dataGet;

import java.util.Comparator;

public class tripleSort implements Comparator<triple> {
	public tripleSort() {
	}

	public int compare(triple t1, triple t2) {
		if (t1.from != t2.from) {
			return t1.from - t2.from;
		}
		if (t1.to != t2.to)
			return t1.to - t2.to;
		return t1.prop.compareTo(t2.prop);
	}
}